package io.renren.modules.erp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.modules.erp.entity.AccountHead;
import io.renren.modules.erp.entity.OrgaUserRel;
import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * Description
 *
 * @Author: cjl
 * @Date: 2019/3/11 18:11
 */
public interface OrgaUserRelService extends IService<OrgaUserRel> {

    public OrgaUserRel getOrgaUserRel(long id) throws Exception;
    public int insertOrgaUserRel(String beanJson, HttpServletRequest request) throws Exception;
    public int updateOrgaUserRel(String beanJson, Long id, HttpServletRequest request) throws Exception;
    public int deleteOrgaUserRel(Long id, HttpServletRequest request)throws Exception ;
    public int batchDeleteOrgaUserRel(String ids, HttpServletRequest request)throws Exception;
    public OrgaUserRel addOrgaUserRel(OrgaUserRel orgaUserRel,Long userId) throws Exception;
    public OrgaUserRel updateOrgaUserRel(OrgaUserRel orgaUserRel,Long userId) throws Exception;
    public String getUserIdListByUserId(Long userId) throws Exception;
    public List<Long> getUserIdListByOrgId(Long orgId);
}
